package com.briup.es;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 给项目开启声明式事务控制
@EnableTransactionManagement
// 告知Spring框架，从com.briup.es.mapper包中读取Mapper接口实现类的对象
@MapperScan("com.briup.es.mapper")
@SpringBootApplication
public class BookStoreApplication {

    public static void main(String[] args) {
        SpringApplication.run(BookStoreApplication.class, args);
    }

}
